package com.sfy.controller;

import com.sfy.dao.OwnerMapper;
import com.sfy.entity.Owner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
public class OwnerController {
    @Autowired
    private OwnerMapper ownerMapper;
    @RequestMapping("/selectOwnerList")
    public List<Owner> selectOwnerList() {
        return ownerMapper.selectOwnerList();
    }
}
